#ifndef RESULTITEM_H
#define RESULTITEM_H

#include <QtGui>

class ResultItem : public QPushButton
{
    Q_OBJECT

public:
    explicit ResultItem(QWidget *parent = 0);
    QString getPos()
    {
        return num->text();
    }

    void setNum(QString num_1)
    {
        num->setText(num_1);
    }
    void setPos(QString pos_1)
    {
        posDescrption->setText(pos_1);
    }

    void setLogo(QString logo)
    {
        devLogo->setText(logo);
    }

private slots:
    void switchToObject();

private:
    QLabel *devLogo;		//设备
    QLabel *posDescrption;	//位置描述
    QLabel *num;			//编号值
};

#endif // RESULTITEM_H
